//
// Created by Administrator on 2022/10/4 0004.
//

#ifndef ONIX_TYPES_H
#define ONIX_TYPES_H

#define bool    _Bool
#define EOS     '\0'
#define EOF     -1
#define NULL    ((void*)0)

#define TRUE    1
#define FALSE   0

#define _packed __attribute__((packed))
#define _ofp __attribute__((optimize("omit-frame-pointer")))

typedef unsigned int size_t;

typedef char int8;
typedef unsigned char u8;
typedef short int16;
typedef unsigned short u16;
typedef int int32;
typedef unsigned int u32;
typedef long long int64;
typedef unsigned long long u64;

typedef int32 fd_t;
typedef enum std_fd_t{
    stdin,
    stdout,
    stderr
} std_fd_t;

typedef u32 idx_t;
typedef int32 pid_t;
typedef int32 dev_t;

#endif //ONIX_TYPES_H
